package com.codeyourlife.service;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import javax.mail.MessagingException;

import com.codeyourlife.entity.EmailVerify;


public interface EmailVerifyService {

	
	
	public void sendTextEmail(String to, String subject, String content)
			throws FileNotFoundException, IOException, MessagingException ;

	public void sendHtmlEmail(String to, String subject, String htmlConent)
			throws FileNotFoundException, IOException, MessagingException ;

	public void sendFileEmail(String to, String subject, String htmlConent, File attachment)
			throws FileNotFoundException, IOException, MessagingException ;
	
	public String getUUID(int len);
	
	public void addEmailVerifyCode(EmailVerify code);
	
	public EmailVerify findEmailVerifyByEmail(String email, String ask_type);
	
	public void delEmailVerifyCode(int id);

}
